Previous Book Contents Book Index Next

Inside Macintosh: QuickDraw GX Objects /
Chapter 7 - View-Related Objects / View-Related Objects Reference
View Port Functions / Manipulating View Port Object Properties


GXGetViewPortParent

You can use the GXGetViewPortParent function to retrieve the parent view port of a view port object.

gxViewPort GXGetViewPortParent(gxViewPort source);
source
A reference to the view port whose parent you want to examine.
function result
A reference to the source view port's parent view port.
DESCRIPTION
The GXGetViewPortParent function returns the parent view port of the source view port, or nil if the view port has no parent (that is, if it is the root view port in a hierarchy).

ERRORS, WARNINGS, AND NOTICES
Errors 
invalid_viewPort_reference 
SEE ALSO
For information about view port hierarchies and the parent view port property, see "Parent and Child View Ports" beginning on page 7-18.

To set the parent of a view port, use the GXSetViewPortParent function, described next.

To get the child view port list of a view port, use the GXGetViewPortChildren function, described on page 7-86. To set the child view port list of a view port, use the GXSetViewPortChildren function, described on page 7-87.


Previous Book Contents Book Index Next

© Apple Computer, Inc.
7 JUL 1996